package com.gdcn.zb.sys.dao.impl;

import java.util.List;

import com.gdcn.zb.base.BaseDao;
import com.gdcn.zb.base.exception.DaoException;
import com.gdcn.zb.sys.dao.IFunctionDao;
import com.gdcn.zb.sys.valueobject.Function;

public class FunctionDaoHibernate extends BaseDao implements IFunctionDao {

	@Override
	protected Class getModelClass() {
		return Function.class;
	}

	public void createFunction(Function function) throws DaoException {
		super.doCreateObject(function);
	}

	public void deleteFunction(Function function) throws DaoException {
		super.doDeleteObject(function);

	}
	
	public void deleteFunction(String id) throws DaoException {
		super.doDeleteObject(id);	
	}

	public Function findFunctionById(String id) throws DaoException {
		return (Function)super.doFindObjectById(id);
	}

	public void updateFunction(Function function) throws DaoException {
		super.doUpdateObject(function);
	}

	public List<Function> listFunctionOfAll() throws DaoException {
		return doListAllObject();
	}

}
